#ifndef SHOWINDEXDIALOG_H
#define SHOWINDEXDIALOG_H

#include <QDialog>
#include <QStringList>
#include <QShowEvent>
#include <QMap>

namespace Ui {
class ShowIndexDialog;
}

class ShowIndexDialog : public QDialog
{
    Q_OBJECT

    QStringList list;

public:
    explicit ShowIndexDialog(QWidget *parent = 0);
    ~ShowIndexDialog();

    void setFileList(QStringList list);

signals:
    void send_db_name(QString);

protected:
    void showEvent(QShowEvent *);

private slots:
    void on_index_file_list_clicked(const QModelIndex &index);

private:
    Ui::ShowIndexDialog *ui;
};

#endif // SHOWINDEXDIALOG_H
